<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Vue的基础</title>
</head>
<body>
  <div id="app">
    <!--id为app的容器中都是vue的容器，注意，一个网页只有一个容器-->
    <h1>{{username}}</h1>
  </div>

  <script src="vue.js"></script>
  
  <script>
    const vm = new Vue({
      el:"#app",
      data:{
        username:"Vue"
      }
    })
  </script>
</body>
</html>